<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fnt" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
    String path = request.getContextPath();
%>
<!DOCTYPE HTML>
<html>
<head>
    <title>更改密码</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="keywords" content="Instant Sign In Form Widget Responsive, Login Form Web Template, Flat Pricing Tables, Flat Drop-Downs, Sign-Up Web Templates, Flat Web Templates, Login Sign-up Responsive Web Template, Smartphone Compatible Web Template, Free Web Designs for Nokia, Samsung, LG, Sony Ericsson, Motorola Web Design">
    <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
    <link href="<%=path%>/web/css/popup-box.css" rel="stylesheet" type="text/css" media="all" />
    <link href="<%=path%>/web/css/style.css" rel='stylesheet' type='text/css' />
    <link href="<%=path%>/web/css/font-awesome.css" rel="stylesheet">
    <link href="//fonts.googleapis.com/css?family=Open+Sans:400,600,700,800" rel="stylesheet">
    <link href="//fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&amp;subset=cyrillic,cyrillic-ext,greek,greek-ext,latin-ext,vietnamese" rel="stylesheet">
    <!--js-->
    <script type="text/javascript" src="<%=path%>/web/js/jquery-2.1.4.min.js"></script>
    <!--//js-->
</head>

<body>
<div class="agileinfo-dot">
    <h1>更改密码</h1>
    <div class="login-section">
        <div class="login-w3l">
            <h2 class="sub-head-w3-agileits">更改密码</h2>
            <div class="login-form">

                <form id="ForgetPassword2Form" action="<%=path%>/services/isForgetChange" method="post">
                    <input type="hidden" value="${email}" name="email">
                    <div class="input">
                        <input type="text" class="newpassword" name="newpassword" id="newpassword" placeholder="请输入你的新密码" required="" />
                        <span id="newpasswordMsg"></span>
                    </div>
                    <div class="input">
                        <input type="text" name="Confirmpassword" id="Confirmpassword" class="Confirmpassword" placeholder="请确认你的密码" required=""/>
                        <span id="newpasswordtextMsg"></span>

                    </div >
                    <div class="input">
                        <input type="submit" id="subBtn" value="确认修改">
                    </div></form>


            </div>
        </div>
    </div>
</div>
<script>
    $(function () {
        $("#Confirmpassword").blur(TPassword) ;
    });
    function TPassword() {
        var path = "<%=path%>";
        var Confirmpassword = $("#Confirmpassword").val();
        var newpassword = $("#newpassword").val();
        var flag;
        if (Confirmpassword==newpassword)
        {
            $("#newpasswordtextMsg").html("√");
            $("#newpasswordtextMsg").css("color", "green");
            flag = true;
        }
        else
        {
            $("#newpasswordtextMsg").html("X");
            $("#newpasswordtextMsg").css("color", "red");
            flag = false;
        }
    }
</script>
</body>






</html>
